# Contributor: Éloi Rivard <eloi.rivard@aquilenet.fr>
# Maintainer: Éloi Rivard <eloi.rivard@aquilenet.fr>
pkgname=py3-flask-themer
_pyname=flask-themer
pkgver=2.0.0
pkgrel=1
pkgdesc="Simple theme mechanism for Flask"
url="https://pypi.org/project/flask-themer"
arch="noarch"
license="MIT"
depends="py3-flask"
checkdepends="
	py3-pytest
	py3-pytest-cov
"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/TkTech/flask-themer/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/flask-themer-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="." pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
334f72e5f8fb888c1cf1067e5b29b587e9c67708845d1efb00a8c4dbe30f3e7c684734b584d4c64b3516b75fdebd92b7c14355a3aa0d68f7c60fd7a983c29a14  py3-flask-themer-2.0.0.tar.gz
"
